default: build-debug

all: debug32 release32 debug64 release64
dist: release32 release64 debug32 debug64

debug: build-debug
release: build-release

debug32: build-debug32
release32: build-release32

debug64: build-debug64
release64: build-release64

build-debug:
	cd build && cmake -DCMAKE_BUILD_TYPE=Debug . && cd ..
	cd build && $(MAKE)
build-release:
	cd build && cmake -DCMAKE_BUILD_TYPE=Release . && cd ..
	cd build && $(MAKE)
build-debug32:
	cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DWORD_LENGTH=32 . && cd ..
	cd build && $(MAKE)
build-release32:
	cd build && cmake -DCMAKE_BUILD_TYPE=Release -DWORD_LENGTH=32 . && cd ..
	cd build && $(MAKE)
build-debug64:
	cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DWORD_LENGTH=64 . && cd ..
	cd build && $(MAKE)
build-release64:
	cd build && cmake -DCMAKE_BUILD_TYPE=Release -DWORD_LENGTH=64 . && cd ..
	cd build && $(MAKE)

clean:
	cd build && $(MAKE) clean
